package com.y.service;

import com.y.pojo.House;

import java.util.List;

public interface IHouseService {
    public int insertHouse(House house) throws Exception;

    public List<House> queryHouse(int pid) throws Exception;

    public int delHouse(int hid) throws Exception;

    public int updateHouse(House house) throws Exception;

    public House selHouse(int hid) throws Exception;

    public List<House> queHouse() throws Exception;

    /*分页*/
    public List<House> getAllHouse(int currPage,int pageSize) throws Exception;
    public int getCount() throws Exception;

    /*搜索*/
    public List<House> quHouse(String str1) throws Exception;

    /*删除全部*/
    public List<House> delete(int pid) throws Exception;
}
